package online.hxstar.learn.serialization;

import java.io.Serializable;

/**
 * @author huxing
 * @date 2018-12-14 18:33
 */
public class SubscribeResp implements Serializable {
    private int subReqId;
    private int respCode;
    private String desc;

    public int getSubReqId() {
        return subReqId;
    }

    public SubscribeResp setSubReqId(int subReqId) {
        this.subReqId = subReqId;
        return this;
    }

    public int getRespCode() {
        return respCode;
    }

    public SubscribeResp setRespCode(int respCode) {
        this.respCode = respCode;
        return this;
    }

    public String getDesc() {
        return desc;
    }

    public SubscribeResp setDesc(String desc) {
        this.desc = desc;
        return this;
    }

    @Override
    public String toString() {
        return "{" +
                "\"subReqId\":" + subReqId +
                ",\"respCode\":" + respCode +
                ",\"desc\":\"" + desc + '\"' +
                '}';
    }
}
